package com.health.controller;

import com.health.dto.ScheduleTimeDTO;
import com.health.result.Result;
import com.health.service.ScheduleService;
import com.health.vo.ScheduleTimeVO;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/scheudle")
public class ScheduleController {
    /** 科室时段 */
    @Autowired
    private ScheduleService scheduleService;
    @GetMapping("/time")
    public Result<List<ScheduleTimeVO>> timeList(ScheduleTimeDTO scheduleTimeDTO){
        List<ScheduleTimeVO> vo = scheduleService.timeList(scheduleTimeDTO);
        return Result.success(vo);
    }

}
